<template>
  <div>
    <el-row width="100%">

      <el-col :span="16" :offset="4">
  <h4 align="left">基本信息</h4>
    <el-divider content-position="right"></el-divider>
  <el-form :label-position="labelPosition" label-width="100px" :model="formLabelAlign" style="width: 380px">
    <el-form-item label="供应商名称：">
      <el-input v-model="formLabelAlign.supplierName"></el-input>
    </el-form-item>
    <el-form-item label="编码：">
      <el-input v-model="formLabelAlign.code"></el-input>
    </el-form-item>
    <el-form-item label="所属区域：">
      <el-select v-model="formLabelAlign.region" placeholder="广东省" style="width: 90px;">
        <el-option label="区域一" value="shanghai"></el-option>
        <el-option label="区域二" value="beijing"></el-option>
      </el-select>
      <el-select v-model="formLabelAlign.region" placeholder="广东省" style="width: 90px;">
        <el-option label="区域一" value="shanghai"></el-option>
        <el-option label="区域二" value="beijing"></el-option>
      </el-select>
      <el-select v-model="formLabelAlign.region" placeholder="广东省" style="width: 90px;">
        <el-option label="区域一" value="shanghai"></el-option>
        <el-option label="区域二" value="beijing"></el-option>
      </el-select>
    </el-form-item>
    <el-form-item label="详细地址：">
      <el-input v-model="formLabelAlign.address"></el-input>
    </el-form-item>
  </el-form>
    <h4 align="left">财务信息</h4>
    <el-divider content-position="right"></el-divider>
    <el-form :label-position="labelPosition" label-width="100px" :model="formLabelAlign" style="width: 380px">
      <el-form-item label="开户名称：">
        <el-input v-model="formLabelAlign.accountName"></el-input>
      </el-form-item>
      <el-form-item label="开户银行：">
        <el-input v-model="formLabelAlign.depositBank"></el-input>
      </el-form-item>
      <el-form-item label="银行账号：">
        <el-input v-model="formLabelAlign.bankAccount"></el-input>
      </el-form-item>
    </el-form>
    <h4 align="left">联系人信息</h4>
    <el-divider content-position="right"></el-divider>
    <el-form :label-position="labelPosition" label-width="100px" :model="formLabelAlign" style="width: 380px">
      <el-form-item label="姓名：">
        <el-input v-model="formLabelAlign.contactName"></el-input>
      </el-form-item>
      <el-form-item label="性别：">
        <el-radio v-model="formLabelAlign.contactGender" label="男">男</el-radio>
        <el-radio v-model="formLabelAlign.contactGender" label="女">女</el-radio>
      </el-form-item>
      <el-form-item label="职务：">
        <el-input v-model="formLabelAlign.contactTitle"></el-input>
      </el-form-item>
      <el-form-item label="手机：">
        <el-input v-model="formLabelAlign.contactPhone"></el-input>
      </el-form-item>
      <el-form-item label="电话：">
        <el-input v-model="formLabelAlign.contactNumber"></el-input>
      </el-form-item>
      <el-form-item label="邮箱：">
        <el-input v-model="formLabelAlign.contactEmail"></el-input>
      </el-form-item>
    </el-form>
    <h4 align="left">其他信息</h4>
    <el-divider content-position="right"></el-divider>
    <el-form :label-position="labelPosition" label-width="100px" :model="formLabelAlign" style="width: 380px">
    <el-form-item label="备注：" prop="desc" >
      <el-input type="textarea" v-model="formLabelAlign.remark"></el-input>
    </el-form-item>
      <el-form-item label="状态：">
        <el-radio v-model="formLabelAlign.supplierStatus" label="0">正常</el-radio>
        <el-radio v-model="formLabelAlign.supplierStatus" label="1">关闭</el-radio>
      </el-form-item>
      <el-form-item >
        <el-button type="primary" style="float: left;" @click="save">保存</el-button>
        <el-button type="primary" style="float: left;">取1消</el-button>
      </el-form-item>
    </el-form>
      </el-col>
    </el-row>
  </div>
</template>

<script>
    export default {
        name: "Inc_purchase",
      data() {
        return {
          labelPosition: 'right',
          formLabelAlign: {
            supplierName:'',
            code:'',
            region:'',
            address:'',
            accountName:'',
            depositBank:'',
            bankAccount:'',
            contactGender:'',
            contactName:'',
            contactTitle:'',
            contactPhone:'',
            contactNumber:'',
            contactEmail:'',
            remark:'',
            supplierStatus:''
          }
        };
      },
      methods:{
          save(){
            console.log(this.formLabelAlign);
          }
      }
    }
</script>

<style scoped>

</style>
